/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.header-stats {
    display: flex;
    gap: 1.2rem;
}

.stat {
    text-align: center;
    color: white;
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 主内容区域 */
.main-content {
    padding-bottom: 4rem;
}

/* 搜索栏 */
.search-bar {
    position: relative;
    max-width: 450px;
    margin: 0 auto 1.5rem;
}

#search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.15s ease, border 0.15s ease;
    border: 2px solid transparent;
}

#search-input:focus {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #666;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* 工具卡片 */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: opacity 0.15s ease, border 0.15s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card:hover {
    opacity: 0.95;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tool-card.coming-soon {
    opacity: 0.7;
}

.tool-card.coming-soon::before {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.tool-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tool-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #2d3748;
    line-height: 1.2;
}

.tool-info p {
    color: #718096;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    font-size: 0.85rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

.feature {
    background: #f7fafc;
    color: #4a5568;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.tool-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.status-badge.available {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.coming-soon {
    background: #fed7d7;
    color: #c53030;
}

.tool-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    transition: opacity 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

.tool-link:hover:not(.disabled) {
    opacity: 0.9;
    background: linear-gradient(135deg, #5a6fd8 0%, #6b5b95 100%);
}

.tool-link.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    color: #a0aec0;
}

/* 分类过滤器 */
.categories {
    text-align: center;
    margin-bottom: 2rem;
}

.categories h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.category-btn {
    padding: 0.6rem 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.category-btn:hover,
.category-btn.active {
    background: white;
    color: #4a5568;
    opacity: 0.95;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 0;
    text-align: center;
    color: white;
}

.footer p {
    margin-bottom: 0.6rem;
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

/* 简化的动画效果 - 移除卡片入场动画 */

/* 响应式设计 */
@media (min-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .header {
        padding: 0.6rem 0;
        margin-bottom: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .header-stats {
        gap: 0.8rem;
    }
    
    .stat strong {
        font-size: 1.1rem;
    }
    
    .stat span {
        font-size: 0.7rem;
    }
    
    .search-bar {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .tool-card {
        padding: 0.7rem;
    }
    
    .tool-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-icon {
        font-size: 1.6rem;
    }
    
    .tool-info h3 {
        font-size: 1rem;
    }
    
    .tool-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-features {
        margin-bottom: 0.7rem;
        gap: 0.2rem;
    }
    
    .feature {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
    
    .category-filters {
        gap: 0.3rem;
    }
    
    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 0.8rem 0;
    }
    
    .footer-links {
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0.5rem 0;
        margin-bottom: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.75rem;
    }
    
    .stat strong {
        font-size: 1rem;
    }
    
    .stat span {
        font-size: 0.65rem;
    }
    
    .search-bar {
        margin-bottom: 0.8rem;
    }
    
    #search-input {
        padding: 0.5rem 0.5rem 0.5rem 2rem;
        font-size: 0.8rem;
    }
    
    .search-icon {
        left: 0.5rem;
        font-size: 0.9rem;
    }
    
    .tools-grid {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }
    
    .tool-card {
        padding: 0.6rem;
    }
    
    .tool-header {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
        align-items: flex-start;
    }
    
    .tool-icon {
        font-size: 1.4rem;
        margin-top: 0.1rem;
    }
    
    .tool-info h3 {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .tool-info p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-features {
        gap: 0.15rem;
        margin-bottom: 0.6rem;
    }
    
    .feature {
        padding: 0.1rem 0.35rem;
        font-size: 0.6rem;
    }
    
    .tool-status {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .status-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .tool-link {
        text-align: center;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .categories {
        margin-bottom: 1.2rem;
    }
    
    .categories h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .category-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 0.6rem 0;
    }
    
    .footer p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* 隐藏工具卡片的动画 */
.tool-card.hidden {
    display: none;
}

.tool-card.filtered-out {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* 空状态 */
.no-results {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 